-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DCC Schema Refresh Fix #1
base: 1.5-without-insta-changes
Are you sure you want to change the base?
Conversation
…fact that DCC doesn't handle varints.
@@ -4,20 +4,20 @@ | |||
<parent> | |||
<groupId>io.debezium</groupId> | |||
<artifactId>debezium-parent</artifactId> | |||
<version>1.5.0-SNAPSHOT</version> | |||
<version>1.5.0.Final</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why these .Final
s are showing up as diff - they are the same on the target branch.
@@ -71,6 +71,8 @@ private CassandraTypeConverter() { | |||
typeMap.put(DataType.Name.TUPLE, new TupleTypeConverter()); | |||
typeMap.put(DataType.Name.UDT, new UserTypeConverter()); | |||
typeMap.put(DataType.Name.UUID, new BasicTypeConverter<>(UUIDType.instance)); | |||
typeMap.put(DataType.Name.VARINT, new BasicTypeConverter<>(IntegerType.instance)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're pretty confident in this side of the type conversion stuff - varint
corresponds to IntegerType
in the CQL code in C*.
src/main/java/io/debezium/connector/cassandra/SchemaProcessor.java
Outdated
Show resolved
Hide resolved
@@ -80,6 +81,7 @@ private CassandraTypeDeserializer() { | |||
tmp.put(DoubleType.class, new BasicTypeDeserializer(CassandraTypeKafkaSchemaBuilders.DOUBLE_TYPE)); | |||
tmp.put(DecimalType.class, new BasicTypeDeserializer(CassandraTypeKafkaSchemaBuilders.DOUBLE_TYPE)); | |||
tmp.put(Int32Type.class, new BasicTypeDeserializer(CassandraTypeKafkaSchemaBuilders.INT_TYPE)); | |||
tmp.put(IntegerType.class, new BasicTypeDeserializer(CassandraTypeKafkaSchemaBuilders.LONG_TYPE)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is likely borked - I don't think a long
will be able to hold bigger IntegerType
values.
src/test/java/io/debezium/connector/cassandra/CommitLogProcessorTest.java
Outdated
Show resolved
Hide resolved
src/test/java/io/debezium/connector/cassandra/CommitLogProcessorTest.java
Outdated
Show resolved
Hide resolved
…fact that DCC doesn't handle varints.
…ndra into 1.5 # Conflicts: # REPORT.adoc # src/main/java/io/debezium/connector/cassandra/SchemaProcessor.java # src/test/java/io/debezium/connector/cassandra/CommitLogProcessorTest.java # src/test/java/io/debezium/connector/cassandra/SnapshotProcessorTest.java
This is a diff against a branch that I created by checking out the commit before Stefan's first one and then cherrypicking the other 2 subsequent commits to 1.5 made by Debezium Builder. I think that should give a good basis to see the changes.
We probably don't need to merge this PR. We can just use it as a locus for comments.